/**
 * Created by Administrator on 2018/11/14.
 */

$(function(){

    /* 验证码 */
    $("#registerBtn").on('click',function(){
        var _this = $(this);
        var user = $("#registerCall");
        var codeture =  codeVal.phone(user);
        if(codeture == false){
            return false;
        }else{
            codeVal.setItem(_this);
        }
    });


})

/* 获取select的值 */
function obtainSel(that){
    var _that = $(that).val();
    if( _that == 'Other'){
        $("#OwnOccupation").show();
    }else{
        $("#OwnOccupation").hide();
    }
}